package org.gdpu.model;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;

/**
 * Created by HEWI2 on 1/22/14.
 */
@Entity
public class Campus {

    /**
     * 校区编号
     */
    private int campusId;

    /**
     * 校区名称
     */
    private String campusName;

    @Id
    public int getCampusId() {
        return campusId;
    }

    public void setCampusId(int campusId) {
        this.campusId = campusId;
    }

    @Column(nullable = false, length = 15)
    public String getCampusName() {
        return campusName;
    }

    public void setCampusName(String campusName) {
        this.campusName = campusName;
    }
}
